package com.aaron.split;

import org.apache.commons.lang.StringUtils;

/**
 * @author liurong
 * @date 2021/12/7 21:18
 * @version:
 */
public class SplitTestDemo {

//    static String testStr = "619375225152b71f6ee17184\t中年（31-50岁）\tHK020\t42909\t1\t[ \"sceneBase64\", \"pedestrianImageBase64\" ]\thttp://10.200.2.14:9007/ivas3/glst-vse-struct-video/f5ceb8fb-8f54-4a0c-bfef-408560c0cff4.jpg\t纯色\thttp://10.200.2.14:9007/ivas3/glst-vse-struct-video/e5477293-3211-4164-ad75-d06060c41b23.jpg\t0\t{ \"leftTopY\" : { \"$numberInt\" : \"112\" }, \"leftTopX\" : { \"$numberInt\" : \"621\" }, \"rightBtmX\" : { \"$numberInt\" : \"796\" }, \"rightBtmY\" : { \"$numberInt\" : \"512\" } }\t长袖\t10020211021114118939\t791A3EABA89B4387A3E3DBA3E3DD3856\t21912B210A364017B4C9CEDE76E2C53F\t67bac5b0e479e4691e\t2021-11-16 17:07:37\t\t黑\tT32W02\thttp://structured.oos-sh2.ctyunapi.cn/sjzl-SJPedestriansSnapping1637053729331.jpg?Signature=4ZlQ5BWkk7z5jz6grEeXIc4haLs%3D&AWSAccessKeyId=f4c2bae984b8fb2901fd&Expires=1952413729\t1637053691053\t行人抓拍\t0\t运动鞋\t2021-11-16 17:07:37\t2021-11-16 17:08:49\tD5A10A459451B572BC95D741AFC573B0C6F5D3E5\t0\t\t0\t\t平头\t长裤\t\t90282\thttp://structured.oos-sh2.ctyunapi.cn/sjzl-SJPedestriansSnapping1637053729496.jpg?Signature=wKQrNoJt92fMgBMTMHFjJ1jp54g%3D&AWSAccessKeyId=f4c2bae984b8fb2901fd&Expires=1952413730\t8139371826456494080\t40\t";
    static String testStr = "619137e05152b7a5977d5e7a\tTrash left!\tHK020\t2021-11-15 00:21:11\t2021-11-15 00:22:56\tD5A10A459451B572BC95D741AFC573B0C6F5D3E5\ttrash\t791A3EABA89B4387A3E3DBA3E3DD3856\t/dapyq/monitorPic?type=4&tmp=1636906976649&m=jpg\t/dapyq/monitorPic?type=4&tmp=1636906976650&m=jpg\t4A0A1D89F8354B8EAC1BB23CD37CE2D5\t90292\t[ \"351,446\", \"369,464\" ]\t2021-11-15 00:21:12\tT37W02\t";


    public static void main(String[] args) {
        String[] split = testStr.split("\t");
        String[] split1 = StringUtils.split(testStr, '\t');
        String[] strings = StringUtils.splitByWholeSeparatorPreserveAllTokens(testStr, "\t");
        System.out.println(strings.length);
    }

}

